package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import java.util.List;

import static org.jsola.hr.example.NewsTypeExample.*;

/**
 * 官网信息的类型
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【官网信息的类型】的参数")
@Data
public class NewsTypeAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_NEWS_GROUP_ID, example = E_NEWS_GROUP_ID)
    @Length(max = 32, message = M_NEWS_GROUP_ID_MAX)
    private String newsGroupId;

    @ApiModelProperty(notes = N_CODE, example = E_CODE)
    @Length(max = 50, message = M_CODE_MAX)
    private String code;

    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    @Length(max = 2147483647, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_NEWS_GROUP_CODE, example = E_NEWS_GROUP_CODE)
    @Length(max = 50, message = M_CODE_MAX)
    private String newsGroupCode;

    @ApiModelProperty(notes = N_NEWS_INFO_ADDDTO, example = E_NEWS_INFO_ADDDTO)
    private NewsInfoAddDTO newsInfoAddDTO;

    @ApiModelProperty(notes = N_NEWS_FILE_ADDDTO_LIST, example = E_NEWS_FILE_ADDDTO_LIST)
    private List<NewsFileAddDTO> newsFileAddDTOList;

    @ApiModelProperty(notes = N_PUSH_DATE, example = E_PUSH_DATE)
    private Date pushDate;
}

